地図:大分県

説明

指定した座標に大分県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x,y,c,0,0,0,0,0,0,12,63);
uart(n,14,3,x+8,y,c,0,0,0,112,127,127,127,255);
uart(n,14,3,x+16,y,c,28,63,127,127,255,255,255,255);
uart(n,14,3,x+24,y,c,0,0,128,128,192,192,192,128);
y=y+8;
uart(n,14,3,x,y,c,127,127,127,255,255,255,255,255);
uart(n,14,3,x+8,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+16,y,c,255,255,254,236,224,224,224,255);
uart(n,14,3,x+24,y,c,128,128,0,0,0,0,0,204);
y=y+8;
uart(n,14,3,x,y,c,255,255,112,240,240,120,56,0);
uart(n,14,3,x+8,y,c,255,255,255,127,127,127,31,31);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,255,255);
uart(n,14,3,x+24,y,c,252,248,240,240,254,252,255,254);
uart(n,14,3,x+32,y,c,0,0,0,0,0,0,128,0);
y=y+8;
uart(n,14,3,x+8,y,c,31,15,15,15,15,7,3,0);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,159,31);
uart(n,14,3,x+24,y,c,254,255,255,255,255,255,223,135);
uart(n,14,3,x+32,y,c,0,0,224,128,128,128,128,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る